<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>标签新增/修改</title>
	<meta charset="utf-8">
	<th:block th:include="include :: header('commonFiles')" />

	<style type="text/css">
		html,body{
			height: 98%;
		}
		.headPadding{
			margin-top: 10px;
		}
		#legend{
			font-size: 25px;
		}
	</style>

</head>

<body>
	<fieldset class="layui-elem-field headPadding">
		<legend id="legend">标签新增/修改</legend>
		<div class="layui-field-box">
			<form class="layui-form">
			
				<!-- 隐藏 -->
				<input type="hidden" name="id" th:value="${id}"/>
			
				<div class="layui-form-item">
					<label class="layui-form-label">标签类别</label>
					<div class="layui-input-block">
						<input type="text" name="labelType" th:value="${entity.labelType}" required  lay-verify="labelType" placeholder="请输入标签类别" autocomplete="off" class="layui-input">
					</div>
				</div>
		  
				<div class="layui-form-item">
					<label class="layui-form-label">描述</label>
					<div class="layui-input-block">
						<input type="text" name="labelDesc" th:value="${entity.labelDesc}" required  lay-verify="labelDesc" placeholder="请输入描述" autocomplete="off" class="layui-input">
					</div>
				</div>
		  
				<div class="layui-form-item">
					<label class="layui-form-label">状态</label>
					<div class="layui-input-block">
						<select name="status">
							<option value="1" th:field="*{entity.status}">有效</option>
							<option value="0" th:field="*{entity.status}">无效</option>
						</select>
					</div>
				</div>
		  
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button class="layui-btn" lay-submit lay-filter="myForm">保存</button>
						<button class="layui-btn layui-btn-primary" onclick="toBack()">返回</button>
					</div>
				</div>
		  
			</form>
		</div>
	</fieldset>
</body>


<!-- th:inline="none" 双数组符号一起使用，在thymeleaf被认为是内联表达式,所以渲染错误，添加了th:inline="none"可以防止该问题 -->
<script type="text/javascript" th:inline="none" th:src="@{/js/label/addPage.js}"></script>

</html>